package cn.chenhongchao.zhaobiaopingtai.controller;

import cn.chenhongchao.zhaobiaopingtai.common.api.CommonPage;
import cn.chenhongchao.zhaobiaopingtai.common.api.CommonResult;
import cn.chenhongchao.zhaobiaopingtai.dto.SupplierLoginData;
import cn.chenhongchao.zhaobiaopingtai.service.ICategoryService;
import cn.chenhongchao.zhaobiaopingtai.service.ITenderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(value = "项目类别信息模块", tags = "项目类别信息模块")
@RestController
@CrossOrigin
@RequestMapping("/outerRequest")
public class OuterRequest {

    @Resource
    private ICategoryService iCategoryService;

    @RequestMapping(value = "/getItemScore",method = RequestMethod.POST)
    public CommonResult getItemScore() {

        return CommonResult.success(CommonPage.restPage(iCategoryService.getCategoryList()));
    }



}
